package api

import (
	"github.com/gin-gonic/gin"
	"wonlicsys/api/v1/Api/ding"
	"wonlicsys/router/handle"
)

func OaRoute(g *gin.RouterGroup) *gin.RouterGroup {
	OaGroup := g.Group("/oa")
	{
		handle.Handle(OaGroup, []string{"POST"}, "/creatTemplate", ding.CreatOrUpdateTemplate)
		handle.Handle(OaGroup, []string{"POST"}, "/startProcess", ding.StartProcessInstanceWithOptions)
	}

	return OaGroup
}
